package com.yq.design.responsibilityOwner;

/**
 * @ClassName DepartmentHandlerImpl
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/25 17:06
 * @Version 1.0
 */
public class DepartmentHandlerImpl extends ApproverHandler {


    @Override
    void processHandler(PurchaseRequest p) {
        if (p.getPrice()<5){
            System.out.println("department"+p.getPrice());
        }else {
            nextHandler.processHandler(p);
        }
    }
}
